const mongoose=require("mongoose");
mongoose.Promise=Promise;
mongoose.connect("mongodb://localhost/test");



var Schema=new mongoose.Schema({
      message:String,
      userName:String,
      createTime:Date
});

var Message=mongoose.model("Message",Schema);

   module.exports=Message;
